﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using System.IO;

namespace ProjectNocturnalFool
{
    public class Definitions
    {
        public List<RaceDefinition> raceDefintions;

        public Definitions loadDefinitions()
        {
            var fileStream = new FileStream("Content/Definitions.xml", FileMode.Open);
            var xmlSerializer = new XmlSerializer(typeof(Definitions));
            Definitions definitions = (Definitions)xmlSerializer.Deserialize(fileStream);
            return definitions;
        }
    }
}
